/*package com.mproject.adapter;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import com.mproject.activity.AddMemberToProject;
import com.mproject.activity.R;
import com.mproject.customclass.UserAdded;


public class Add_Member_Added_List_Adapter extends ArrayAdapter<UserAdded>{

	private static final String tag = "Add_Member_Added_List_Adapter";

	// private static final String ASSETS_DIR = "images/";
	private Context context;
	AddMemberToProject activity;

	private TextView user_id;
	private TextView delete_button;
	private TextView manager_icon;

	private List<UserAdded> userList = new ArrayList<UserAdded>();
	public Add_Member_Added_List_Adapter(AddMemberToProject activity,Context context, int textViewResourceId,List<UserAdded> userList)
	{
		super(context, textViewResourceId, userList);
		this.context = context;
		this.userList = userList;
		this.activity=activity;
		Log.v(tag,"in constructor");
	}
	public int getCount() 
	{
		return this.userList.size();
	}
	public UserAdded getItem(int index) 
	{
		return this.userList.get(index);
	}
	public View getView(final int position, View convertView, ViewGroup parent) 
	{
		View row = convertView;
		if (row == null) 
		{
			Log.d(tag, "Starting XML Row Inflation ... ");
			LayoutInflater inflater = (LayoutInflater) this.getContext()
					.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
			row = inflater.inflate(R.layout.add_member_list_added_row, parent, false);
			Log.d(tag, "Successfully completed XML Row Inflation!");
		}

		final UserAdded user = getItem(position);


		user_id = (TextView) row.findViewById(R.id.user_added_id);
		delete_button = (TextView) row.findViewById(R.id.user_added_delete);
		manager_icon = (TextView)row.findViewById(R.id.manager_icon);

		if (user.isManager()) {
			manager_icon.setBackgroundResource(R.drawable.people_active);
		}
		else {
			manager_icon.setBackgroundResource(R.drawable.people_inactive);
		}


		delete_button.setOnClickListener(new OnClickListener() {


			public void onClick(View v) {
				userList.remove(user);
				activity.refreshList();
			}
		});
		manager_icon.setOnClickListener(new OnClickListener() {


			public void onClick(View v) {
				user.setManager(!user.isManager());
				activity.refreshList();
			}
		});



		user_id.setText(user.getUserID());



		return row;
	}

}

*/